package com.osell.selection.ui.main;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.da.lon.wang.xlg.R;
import com.osell.selection.ui.base.BaseFragment;
import com.osell.selection.ui.common.WebViewFragment;

public class MessageFragment extends BaseFragment {

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_message, container, false);
    }

    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        getChildFragmentManager().beginTransaction()
                .replace(R.id.fl_fragment_container, WebViewFragment.newInstance("http://im.sk.osell.com/Index-chat"))
                .commit();
    }
}
